package com.itqf.ipmsys.controller;


import com.itqf.ipmsys.dto.PoliceSituationTypeDto;
import com.itqf.ipmsys.service.PoliceSituationTypeService;
import com.itqf.ipmsys.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 报警类型表 前端控制器
 * </p>
 *
 * @author corn
 * @since 2021-09-22
 */
@CrossOrigin("*")
@RestController
@RequestMapping("/policesituationtype")
public class PoliceSituationTypeController {


    @Autowired
    private PoliceSituationTypeService policeSituationTypeService;


    @GetMapping(value = "select")
    public Object select() {

        Object data  = policeSituationTypeService.select();

        return R.ok().setData("policesituationtypes",data);
    }
}

